package com.ddwl.goods.dao.mapper;

import com.ddwl.common.dao.mapper.TkMapper;
import com.ddwl.goods.model.ItemTopic;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ItemTopicMapper extends TkMapper<ItemTopic> {
    int deleteByTopicId(@Param("topicId")String topicId);

    int deleteByItemId(@Param("itemId")String itemId);

    int deleteByItemTopicId(@Param("itemId")String itemId,@Param("topicId")String topicId);

    int insertByItems(@Param("topicId")String topicId, @Param("itemIds")List<String> itemIds);

    int insertByList(@Param("itemTopicList")List<ItemTopic> list);
}
